<template>
	<view class="healthpage">
		<view class="tabbar">
			<view class="itemtab" :class="tab==1?'act':''" @click="selecttab(1)">
				<view class="name">
					报告解读
				</view>
				<view class="itemline"></view>
			</view>
			<view class="itemtab" :class="tab==2?'act':''" @click="selecttab(2)">
				<view class="name">
					专家讲座
				</view>
				<view class="itemline"></view>
			</view>
			<view class="itemtab" :class="tab==3?'act':''" @click="selecttab(3)">
				<view class="name">
					案例分享
				</view>
				<view class="itemline"></view>
			</view>
			<view class="itemtab" :class="tab==4?'act':''" @click="selecttab(4)">
				<view class="name">
					健康测评
				</view>
				<view class="itemline"></view>
			</view>
		</view>
		<view class="listbox">
			<view class="itemlist">
				  <view class="imgbox">
				  	<image src="https://changban.dianjingkeji.net/img/fd456a1456416.jpg" mode=""></image>
				  </view>
				  <view class="info">
				  	<view class="name">
				  		血压监测报告
				  	</view>
					<view class="labelline">
						<view class="label">
						  报告
						</view>
						<view class="content">
							点评内容
						</view>
					</view>
					<view class="time">
						2025-09-20
					</view>
				  </view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tab:1
			}
		},
		methods: {
			selecttab(e){
				this.tab=e
			},
		}
	}
</script>

<style lang="less" scoped>
  .healthpage{
	  width: 750rpx;
	  box-sizing: border-box;
	  padding-top: 20rpx;
	background: linear-gradient(180deg, rgba(242,248,255,1) 0%,rgba(255,255,255,0) 76%);
	.tabbar{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-evenly;
		.itemtab{
			width: 25%;
			height: 70rpx;
			text-align: center;
			
			.itemline{
				height: 8rpx;
				width: 60rpx;
				border-radius: 4rpx;
				margin: 16rpx auto;
			}
		}
		.act{
			font-weight: bold;
			.itemline{
				background-color: #1A4F8A;
			}
		}
	}
	.listbox{
		width: 100%;
		margin-top: 20rpx;
		box-sizing: border-box;
		background: white;
		border-radius: 20rpx;
		padding: 30rpx;
		.itemlist{
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.imgbox{
				width: 250rpx;
				height: 200rpx;
				border-radius: 20rpx;
				image{
					width: 100%;
					height: 100%;
					border-radius: 20rpx;
				}
			}
			.info{
				flex: 1;
				line-height: 2;
				margin-left: 30rpx;
				.name{
					font-weight: bold;
				}
				.labelline{
					display: flex;
					align-items: center;
					font-size: 30rpx;
					.label{
						color:#0099ff;
					}
					.content{
						color: gray;
					}
				}
				.time{
					font-size: 28rpx;
					color: gray;
				}
			}
		}
	}
	
  }
</style>
